home *** CD-ROM | disk | FTP | other *** search
- // $TEXTURE1
-
-
- shader()
- {
- ShaderQuality(1)
- pass()
- {
- Pixelshader("CarG_ps11_Inside.psh")
-
- tmu()
- {
- TexMod("scale", "const", U_TILE, 0, 0, "const", V_TILE, 0, 0)
- TexMod("translate", "const", U_OFFSET, 0, 0, "const", V_OFFSET, 0, 0)
- Texture()
- {
- Mapchannel(0)
- Image(TEXTURE1)
- filtering("linear_no_mip")
- }
- }
- tmu()
- {
- TexMod("scale", "const", U_TILE, 0, 0, "const", V_TILE, 0, 0)
- TexMod("translate", "const", U_OFFSET, 0, 0, "const", V_OFFSET, 0, 0)
- Texture()
- {
- Mapchannel(0)
- Image(DIRT)
- filtering("linear_no_mip")
- }
- }
-
- TFactor(0.0, 0.0, 0.0, 1.0)
- colorgen("tfactor", "none", 0,0,0, "user", 0,0,0) // A - dirt level
- BlendFunc("src_alpha", "inv_src_alpha")
- }
- sortweight("depth_sorted")
- Cull("ccw")
- }
-
- //------------------------ GF2
-
- shader()
- {
- ShaderQuality(4) // a moze 3?
- pass()
- {
- Lighting()
- tmu()
- {
- TexMod("scale", "const", U_TILE, 0, 0, "const", V_TILE, 0, 0)
- TexMod("translate", "const", U_OFFSET, 0, 0, "const", V_OFFSET, 0, 0)
- //TexMod("rotate", "const", 0, 0, 0, "const", 0, 0, 0)
- Texture()
- {
- Mapchannel(0)
- Image(DIRT)
- filtering("linear_no_mip")
- }
- ColorOp("mul", "diffuse", "tfactor", "tfactor")
- AlphaOp("mul", "texture_a", "diffuse_a", "current")
- }
- tmu()
- {
- ColorOp("mul", "current", "tfactor_a", "current")
- AlphaOp("arg1", "current", "current", "current")
- }
- TFactor(%daycolor_r, %daycolor_g, %daycolor_b, 0.3)
- colorgen("diffuse", "none", 0,0,0, "user", 0,0,0) // A - dirt level
- BlendFunc("src_alpha", "inv_src_alpha")
-
- AmbientColor(%dirtcolor_r, %dirtcolor_g, %dirtcolor_b, 1.0)
- DiffuseColor(%dirtcolor_r, %dirtcolor_g, %dirtcolor_b, 1.0)
- SpecularColor(0.0, 0.0, 0.0, 1.000)
- EmissiveColor(0.0, 0.0, 0.0, 1.000)
- SpecularPow(0)
- }
- pass()
- {
- tmu()
- {
- TexMod("scale", "const", U_TILE, 0, 0, "const", V_TILE, 0, 0)
- TexMod("translate", "const", U_OFFSET, 0, 0, "const", V_OFFSET, 0, 0)
- //TexMod("rotate", "const", 0, 0, 0, "const", 0, 0, 0)
- Texture()
- {
- Mapchannel(0)
- Image(TEXTURE1)
- filtering("linear_no_mip")
- }
- ColorOp("arg1", "texture", "current", "current")
- AlphaOp("arg1", "texture_a", "tfactor_a", "current")
- }
- BlendFunc("zero", "inv_src_alpha")
- }
-
- sortweight("depth_sorted")
- Cull("ccw")
- }
-
- shader()
- {
- ShaderQuality(1)
- pass()
- {
- Lighting()
- tmu()
- {
- TexMod("scale", "const", U_TILE, 0, 0, "const", V_TILE, 0, 0)
- TexMod("translate", "const", U_OFFSET, 0, 0, "const", V_OFFSET, 0, 0)
- //TexMod("rotate", "const", 0, 0, 0, "const", 0, 0, 0)
- Texture()
- {
- Mapchannel(0)
- Image(DIRT)
- filtering("linear_no_mip")
- }
- ColorOp("mul", "diffuse", "tfactor", "tfactor")
- AlphaOp("mul", "texture_a", "diffuse_a", "current")
- }
- tmu()
- {
-
- TexMod("scale", "const", U_TILE, 0, 0, "const", V_TILE, 0, 0)
- TexMod("translate", "const", U_OFFSET, 0, 0, "const", V_OFFSET, 0, 0)
- //TexMod("rotate", "const", 0, 0, 0, "const", 0, 0, 0)
- Texture()
- {
- Mapchannel(0)
- Image(TEXTURE1)
- filtering("linear_no_mip")
- }
-
- ColorOp("mul", "current", "tfactor_a", "current")
- AlphaOp("add", "texture", "current", "current")
- }
- TFactor(%daycolor_r, %daycolor_g, %daycolor_b, 0.3)
- colorgen("diffuse", "none", 0,0,0, "user", 0,0,0) // A - dirt level
- BlendFunc("src_alpha", "inv_src_alpha")
-
- AmbientColor(%dirtcolor_r, %dirtcolor_g, %dirtcolor_b, 1.0)
- DiffuseColor(%dirtcolor_r, %dirtcolor_g, %dirtcolor_b, 1.0)
- SpecularColor(0.0, 0.0, 0.0, 1.000)
- EmissiveColor(0.0, 0.0, 0.0, 1.000)
- SpecularPow(0)
- }
- sortweight("depth_sorted")
- Cull("ccw")
- }
-
- // ================================
- shader()
- {
- ShaderQuality(0)
- pass()
- {
- tmu()
- {
- TexMod("scale", "const", U_TILE, 0, 0, "const", V_TILE, 0, 0)
- TexMod("translate", "const", U_OFFSET, 0, 0, "const", V_OFFSET, 0, 0)
- //TexMod("rotate", "const", 0, 0, 0, "const", 0, 0, 0)
- Texture()
- {
- Mapchannel(0)
- Image(TEXTURE1)
- filtering("linear_no_mip")
- }
- //ColorOp("lerp", "inv_texture_a", "tfactor", "tfactor")
- }
-
- //TFactor(0.0, 0.0, 0.0, 0.0)
- BlendFunc("src_alpha", "inv_src_alpha")
- }
- sortweight("depth_sorted")
- Cull("ccw")
- }
-